{% extends 'base.html' %}

{% block content %}
    <div class="container">
      <div class="panel panel-default">
          <div class="panel-heading">
            <h3 class="panel-title">修改用户信息</h3>
          </div>
          <div class="panel-body">
            <form method="post">
                {% csrf_token %}
                {% for i in end %}
                 <div class="form-group">
                        <label >姓名:</label>
                        <input type="text" class="form-control" placeholder="姓名" name="name" value="{{ i.name }}">
                 </div>
                <div class="form-group">
                        <label >密 码:</label>
                        <input type="text" class="form-control" placeholder="密码" name="pwd" value="{{ i.password }}">
                 </div>
                <div class="form-group">
                        <label >年 龄:</label>
                        <input type="text" class="form-control" placeholder="年龄" name="age" value="{{ i.age }}">
                 </div>
                <div class="form-group">
                        <label >账户余额:</label>
                        <input type="text" class="form-control" placeholder="余额" name="act" value="{{ i.account }}">
                 </div>
                <div class="form-group">
                        <label >入职时间:</label>
                        <input type="text" class="form-control" placeholder="入职时间" name="time" value="{{ i.create_time }}">
                 </div>
                <div class="form-group">
                        <label >性 别:</label>
                        <select class="form-control" name="gb" >
                            {% for item in gender_choices %}
                               <option value="{{ item.0 }}">{{ item.1 }}</option>
                            {% endfor %}
                        </select>
                 </div>
                <div class="form-group">
                        <label >所属部门:</label>
                        <select class="form-control" name="dp">
                            {% for chen in depart_list  %}
                               <option value="{{ chen.id }} ">{{ chen.title }}</option>
                            {% endfor %}
                        </select>
                 </div>
                 <button type="submit" class="btn btn-primary">提 交</button>
                {% endfor %}
            </form>
          </div>
      </div>
   </div>
{% endblock %}